package com.jintoufs.service.coupon;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.coupon.Coupon;
import org.jboss.logging.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by xufei on 2017/12/20.
 */
public interface CouponService {

    List<Map<String,Object>> queryByParams(Map<String, Object> params);

    /**
     * 保存优惠券
     *
     * @return
     */
    Map<String, Object> save(Coupon coupon);

    void delete(Integer id);

    List<Coupon> getByFilter(QueryFilters filters);

    Coupon getById(Integer id);

    List<Map<String, Object>> selectByIds(Map<String,Object> param);


}
